all: test fakelib 
# Which compiler
CC = gcc

# Where are include files kept
INCLUDE = .

# Options for development
# CFLAGS = -v -O3 -Wall -ansi

test: test.c
	$(CC)  $(CFLAGS) -MMD -MP  -o test test.c 
	
fakelib: fakelib.c
	$(CC) -fPIC -c -Wall fakelib.c -o fakelib.o
	$(CC) -shared fakelib.o -ldl -lstdc++ -o fakelib.so


clean:
	rm test fake*.o fake*.so 
